package com.jeesite.modules.digitalize.entity.dto.digitalizeComponentNote;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zhaoshuaixiang
 * @date 2023/11/18 14:29
 */
@Data
public class DigitalizeComponentNoteDto {

    @NotBlank(message = "构建id不能为空")
    @ApiModelProperty(value = "构建id", required = true)
    private String componentId;

    @NotBlank(message = "构建名字不能为空")
    @ApiModelProperty(value = "构建名字", required = true)
    private String componentName;

//    @NotBlank(message = "版本id不能为空")
    @ApiModelProperty(value = "版本id", required = false)
    private String versionId;

//    @NotBlank(message = "版本名字不能为空")
    @ApiModelProperty(value = "版本名字", required = false)
    private String versionName;

    @NotBlank(message = "图片地址不能为空")
    @ApiModelProperty(value = "图片地址", required = true)
    private String fileUrl;

    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型[0视点 1批注 2标签]", required = true)
    private Integer noteType;

    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "[视点|批注|标签]内容", required = true)
    private String noteContent;

    @ApiModelProperty("参数")
    private String noteParam;

    @ApiModelProperty(value = "项目id", required = true)
    @NotNull
    private String projectId;

    @NotNull(message = "文件类型不能为空")
    @ApiModelProperty(value = "类型[0模型 1集成]", required = true)
    private Integer fileType;
}
